﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Structural
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create director and builders
            Director dr = new Director();

            Builder cb1 = new ConcreteBuilder1();
            Builder cb2 = new ConcreteBuilder2();

            // Construct one products
            dr.Construct(cb1);
            Product p1 = cb1.GetResult();
            p1.Show();

            // Construct another products
            dr.Construct(cb2);
            Product p2 = cb2.GetResult();
            p2.Show();

            Console.ReadKey();
        }
    }
}
